package com.zryc.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author xujiajun
 * @since 2022-10-17
 */
@TableName("order_detail")
@ApiModel(value = "OrderDetail对象", description = "订单详情表")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单详情表ID")
    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Integer orderDetailId;

    @ApiModelProperty("订单表ID")
    private Integer orderId;

    @ApiModelProperty("订单商品ID")
    private Integer productId;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("购买商品数量")
    private Integer productCnt;

    @ApiModelProperty("购买商品单价")
    private BigDecimal productPrice;

    @ApiModelProperty("平均成本价格")
    private BigDecimal averageCost;

    @ApiModelProperty("商品重量")
    private Double weight;

    @ApiModelProperty("优惠分摊金额")
    private BigDecimal feeMoney;

    @ApiModelProperty("仓库ID")
    private Integer wId;

    public Integer getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Integer orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductCnt() {
        return productCnt;
    }

    public void setProductCnt(Integer productCnt) {
        this.productCnt = productCnt;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getAverageCost() {
        return averageCost;
    }

    public void setAverageCost(BigDecimal averageCost) {
        this.averageCost = averageCost;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public BigDecimal getFeeMoney() {
        return feeMoney;
    }

    public void setFeeMoney(BigDecimal feeMoney) {
        this.feeMoney = feeMoney;
    }

    public Integer getwId() {
        return wId;
    }

    public void setwId(Integer wId) {
        this.wId = wId;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
            "orderDetailId = " + orderDetailId +
            ", orderId = " + orderId +
            ", productId = " + productId +
            ", productName = " + productName +
            ", productCnt = " + productCnt +
            ", productPrice = " + productPrice +
            ", averageCost = " + averageCost +
            ", weight = " + weight +
            ", feeMoney = " + feeMoney +
            ", wId = " + wId +
        "}";
    }
}
